package com.zbkj.common.response;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="InvoiceInfo对象", description="电子发票信息")
public class InvoiceResponse implements Serializable {

    private static final long serialVersionUID=1L;//Java 对象序列化/反序列化的重要标识符

    @ApiModelProperty(value = "发票名称")
    private String invoiceName;

    @ApiModelProperty(value = "发票号码")
    private String invoiceNumber;

    @ApiModelProperty(value = "开票日期")
    private Date invoiceDate;

    @ApiModelProperty(value = "销售方名称")
    private String businessName;

    @ApiModelProperty(value = "销售方税号")
    private String businessTaxpayerNumber;

    @ApiModelProperty(value = "购买方名称")
    private String customerName;

    @ApiModelProperty(value = "购买方税号")
    private String customerTaxpayerNumber;

    @ApiModelProperty(value = "订单编号")
    private String orderId;

    @ApiModelProperty(value = "发票商品列表")
    private List<InvoiceProductResponse> invoiceProductList;

    @ApiModelProperty(value = "金额合计")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "税额合计")
    private BigDecimal totalTax;

    @ApiModelProperty(value = "价税合计")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "备注",required = false)
    private String remarks;

    @ApiModelProperty(value = "开票人")
    private String invoiceIssuer;
}
